package com.hzsk.lisence.entity;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @Description : 获取授权文件参数-证书文件
 * @Date : 2024/8/29
 * @Author : ChenJin
 * @Version : v1.0.0
 **/
@Structure.FieldOrder({"FuncItemArr","funcItemCnt"})
//@Structure.FieldOrder({"FuncItemArr"})
public class FA_FuncItemInfo extends Structure{

    /**
     * 功能项名称列表
     */
    public byte[] FuncItemArr;

    /**
     * 实际添加的功能项数量
     */
    public int funcItemCnt;
    
    public FA_FuncItemInfo(){
        super(ALIGN_DEFAULT);
        this.FuncItemArr = new byte[256*33];
        this.funcItemCnt = 0;
    }
    
    public static class ByValue extends FA_FuncItemInfo implements Structure.ByValue{};
    
    @Override
    protected List<String> getFieldOrder(){
        return Arrays.asList("FuncItemArr","funcItemCnt");
//        return Collections.singletonList("FuncItemArr");
    }

}
